-- GENERATED SPELL FOR [Magistrate Burnside] --


function spell0_2335(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_2335', 2000, 1)
end

function spell1_2335(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2335', 3000, 1)
end

function spell2_2335(pUnit, Event) --@Inferno Shell,Self--
pUnit:FullCastSpellOnTarget(7739,pUnit)
pUnit:RegisterEvent('Sorts_2335', 13000, 1)
end

function Sorts_2335(pUnit, Event)
local choix_sorts_2335 = math.random(0, 2)
if choix_sorts_2335 == 0 then
pUnit:RegisterEvent('spell0_2335', 1, 1)
end
if choix_sorts_2335 == 1 then
pUnit:RegisterEvent('spell1_2335', 1, 1)
end
if choix_sorts_2335 == 2 then
pUnit:RegisterEvent('spell2_2335', 1, 1)
end
end

function mob2335_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2335', math.random(1500, 3000), 1)
end

function mob2335_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2335_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2335_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2335, 1, 'mob2335_Action')
RegisterUnitEvent(2335, 2, 'mob2335_Leave')
RegisterUnitEvent(2335, 3, 'mob2335_Kill')
RegisterUnitEvent(2335, 4, 'mob2335_Die')
